import axios from 'axios'
// import { response } from "express";

export const Service = axios.create({
	timeout: 8000, // 延迟时间
	headers: {
		'content-Type': 'application/x-www-form-urlencoded',
        // 'enctype':"multipart/form-data",
	},
})

// 请求拦截
Service.interceptors.request.use(config => {
	return config
})

// 响应拦截
Service.interceptors.response.use(
	response => {
		return response.data
	},
	err => {
		console.log(err)
	}
)
